#include <stdio.h>
void main (void)
{
	unsigned aa, bb, cc, dd, ee, ff, gg, hh, ii, jj, kk, mm=0x0000, nn;
	int i;

	aa = 0xDFFF;
	bb = 0x2840;
	cc = 0xFF7F;
	dd = 0x0004;
	ee = 0xA3C5;
	ff = aa & cc;
	gg = bb | dd;
	nn = aa&(~dd);
	hh = aa ^ bb;
	ii = cc >> 1;
	jj = dd << 3;

	printf("ff=%x, gg=%p, hh=%p, ii=%p, jj=%p,n=%p\n\n",ff,gg,hh,ii,jj,nn);

	printf ("The bits for ee (hex A3C5) are:\n");
	mm = 1 << 15;
	for (i=16; i>=1; i--)
	{
		kk = ee & mm;
		kk >>= (i-1);
		printf ("%u ",kk);
		mm >>= 1;
	}
	printf ("\n");
}

